package com.study.demo.service;

import com.study.demo.dto.User;
import com.study.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyBatisService {

    @Autowired
    private UserMapper userMapper;

    public User getUserByName(String name) {
        return userMapper.getUserByName(name);
    }
}
